.magicCube {
  .active {
    background: #e0edff;
    border: 1px solid #155bd4 !important;
    color: #155bd4;
    z-index: 2;
    cursor: auto;
  }
  .imgLayout{
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
  }
  .layout-cont{
    height: 100px;
    width: 100%;
    display: flex;
    >div{
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 18px;
      text-align: center;
      overflow: hidden;
    }
  }
  .imgLayout-border{
    >div{
      border: 1px solid #999;
    }
  }
  .imgLayout-one{
    height: 150px;
  }
  .imgLayout-two{
    height: 105px;
  }
  .imgLayout-three{
    height: 85px;
  }
  .imgLayout-four{
    flex-wrap: wrap;
    height: 300px;
    >div{
      width: 50%;
      height: 150px;
      overflow: hidden;
      flex: none !important;
    }
  }
  .imgLayout-five{
    flex-wrap: wrap;
    height: 300px;
    position: relative;
    >div{
      &:nth-child(1){
        width: 50%;
        top: 0px;
        left: 0px;
        position: absolute;
        height: 100%;
      }
      &:nth-child(2),&:nth-child(3){
        width: 50%;
        height: 50%;
        position: absolute
      }
      &:nth-child(2){
        right: 0;
        top: 0;
      }
      &:nth-child(3){
        right: 0;
        bottom: 0;
      }
    }
  }
  .imgLayout-six{
    >div{
      &:nth-child(1){
        width: 100%;
        height: 50%;
      }
      &:nth-child(2){
        top: auto;
        left: 0;
        bottom: 0;
      }
      &:nth-child(3){
        right: 0;
        bottom: 0;
      }
    }
  }
  .imgLayout-seven{
    >div{
      &:nth-child(3){
        width: 25%;
        right: 25%;
        bottom: 0;
      }
      &:nth-child(4){
        height: 50%;
        width: 25%;
        right: 0;
        bottom: 0;
        position: absolute;
      }
    }
  }
  .decorate-select{
    margin-bottom: 20px;
    input{
      height: 28px;
      line-height: 28px;
    }
    .el-input__icon{
      line-height: 28px;
    }
  }
  .decorate-cube {
    width: 320px;
    height: 320px;
    position: relative;
    margin: auto;
    .plus-icon{
      font-size: 20px;
      color: #bbb;
    }
    .cube-item {
      border-right: 1px solid #e5e5e5;
    }
    .cube-selected {
      position: absolute;
      background-color: #fff;
      border: 1px solid #ebedf0;
      text-align: center;
      color: #7d7e80;
      cursor: pointer;
      box-sizing: border-box;
      i{
        position: absolute;
        right: -5px;
        top: -5px;
        display: none;
        z-index: 10;
        color: #858585;
        font-size: 15px;
      }
    }
    .cube-selected-click {
      background: #e0edff;
      border: 1px solid #155bd4;
      color: #155bd4;
      z-index: 2;
      cursor: auto;
      i{
        display: block;
        background: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
}
    }
    .cube-selected-text {
      font-size: 12px;
      width: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
    }
    .cube-col {
      float: left;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .cube-item:first-child {
      border-top: 1px solid #e5e5e5;
    }
    .cube-item {
      background: #f8f8f8;
      border-left: 1px solid #e5e5e5;
      border-bottom: 1px solid #e5e5e5;
      cursor: pointer;
      text-align: center;
      box-sizing: border-box;
    }
    .cube-item.item-selecting {
      background: #e0edff;
    }
    .cube-item.item-selected {
      background: #e0edff;
      visibility: hidden;
    }
  }

  .ad-image-main{
    display: flex;
    .main-image{
      width: 80px;
      height: 80px;
      border: 1px solid #e5e5e5;
      // background-repeat: no-repeat;
      // background-size: cover;
      // background-position: center;
      // position: relative;
      background: #f2f4f6;
      overflow: hidden;
      .main-image-add{
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #155bd4;
        font-size: 12px;
        background: #f2f4f6;
        cursor: pointer;
        height: 100%;
        justify-content: center;
        span{
          font-size: 28px;
        }
        div{
          margin-bottom: 10px;
        }
      }
      .main-image-url{
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        .main-image-revise{
          position: absolute;
          margin: 0;
          bottom: 0;
          left: 0;
          width: 100%;
          background: rgba(0, 0, 0, 0.52);
          text-align: center;
          padding: 2px 0;
          cursor: pointer;
          color: #fff;
        }
      }


    }
    .main-content{
      padding-left: 20px;
      .ad-image-title{
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        span{
          white-space: nowrap;
        }
      }
    }
  }

  .previewStyle {
    .endtileImg:last-child {
      margin-bottom: 0 !important;
    }
    .tileImg:last-child {
      margin-right: 0 !important;
    }
    .indicator_a {
      .el-carousel__button {
          width: 5px;
          height: 5px;
          border-radius: 50%;
      }
    }
    .indicator_b {
      .is-active {
        .el-carousel__button {
            width: 15px;
            height: 5px;
            border-radius: 10px;
        }
      }
      .el-carousel__button {
          width: 5px;
          height: 5px;
          border-radius: 50%;
      }
    }
    .indicator_c {
      .el-carousel__button {
          width: 15px;
          height: 3px;
      }
    }
    .indicator_d {
      .el-carousel__button {
          display: none;
      }
    }
    .indicator_e {
      position: absolute;
      left: 50%;
      right: 0;
      bottom: 12px;
      transform: translateX(-50%);
      background-color: #999;
      width: 30px;
      height: 15px;
      text-align: center;
      line-height: 15px;
      border-radius: 15px;
      color: #FFFFFF;
      z-index: 999;
    }
  }
  .rightWrap {
    .tabRadioWrap {
      .el-radio-group {
        width: 100%;
        .el-radio-button {
          width: 12.5%;
          .el-radio-button__inner {
            width: 100%;
          }
        }
      }
    }
    .el-tabs__nav-scroll {
        display: flex;
        justify-content: center;
        .el-tabs__item {
          padding: 0 40px;
        }
    }
  }
  .progressWrap {
    padding:10px;
    .progressBox {
      width: 100%;
      height: 40px;
      padding:5px;
      background-color: #FFFFFF;
      .progress {
        padding: 0 10px;
      }
      .inpWrap {
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
      }
    }
  }
  #dialog {
    .up-dialog{
      .el-dialog__header{
        display: inline;
      }
    }
  }
  .cursor {
    cursor: pointer;
    font-size: 12px;
    color: #fff;

    &.color {
      color: #2c3e50;
    }
  }

  .typeName {
    display: inline-block;
    border: 1px solid rgba(51, 136, 255, 0.3);
    background: #e2f3ff;
    padding: 1px 4px;
    text-align: center;
    margin-right: 5px;
  }
  .microTitle {
    font-size: 12px;
    color: #464646;
    padding: 5px;
  }
  .modifyBtn {
    color: #38f;
  }
  img {
    width: 100%;
    user-select: none;
  }

  .ad-view-box {
    position: relative;
    overflow: hidden;

    &.ad-view-2, &.ad-view-3 {
      white-space: nowrap;
      display: -webkit-box;

      .image-ad-view {
        width: 100%;
      }
    }

    &.ad-view-3 {
      .image-ad-view {
        width: 40%;
      }
    }


  }

  .close-icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    display: none;
  }

  .image-ad-view {
    position: relative;
    height: 135px;
    overflow: hidden;
    font-size: 12px;
    background-color: #ebf8fd;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #88c4dc;
    text-align: center;

    .image-ad-title {
      line-height: 135px;
    }


  }

  .ad-po {
    position: absolute;
    width: 100%;
    bottom: 10px;
    text-align: center;
    left: 0;

    span {
      width: 5px;
      height: 5px;
      border-radius: 100%;
      background: #7d7e80;
      display: inline-block;
      margin: 0 3px;

      &:first-child {
        background: #679fce;
      }
    }
  }
  .ad-add-image {
    background: #fff;
    padding: 10px 0;
    text-align: center;
    border: 1px dashed #e5e5e5;
    margin-top: 10px;
    cursor: pointer;

    &:hover {
      border: 1px dashed #38f;
    }

    p {
      color: #38f;
    }
  }


  .ad-hot-box {
    position: relative;
    width: 500px;
    margin: 0 auto;
    overflow: hidden;

    .box-img {
      position: relative;
      height: auto;
      width: 500px;
      vertical-align: middle;
      border: 0;
    }
  }

  .ad-drag {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    user-select: auto;
    touch-action: none;
    cursor: move;
    border: 1px solid #38f;
    background: rgba(51, 136, 255, .5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;

    &:hover {
      .el-icon-close {
        display: block;
        cursor: pointer;
      }
    }

    * {
      user-select: auto;
      touch-action: none;
    }

    .el-dropdown-link {
      color: #fff;
    }


  }

  .ad-image-list {
    display: flex;
    background: #fff;
    padding: 10px;
    border: 1px dashed #e5e5e5;
    margin-top: 10px;

    &:hover {
      border: 1px dashed #38f;


    }

    > div {
      &:first-child {
        position: relative;
        width: 80px;
        height: 80px;
        cursor: all-scroll;

        .re-choose-img {
          position: absolute;
          margin: 0;
          bottom: 0;
          left: 0;
          width: 100%;
          background: rgba(0, 0, 0, 0.52);
          text-align: center;
          padding: 2px 0;
          cursor: pointer;
          color: #fff;
        }
      }

      &:last-child {
        flex: 1;
      }
    }

    .ad-image-list-img {
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      background-color: #ccc;
    }

    .ad-image-list-content {
      position: relative;
      padding-left: 10px;
      display: flex;
      align-items: center;

      .close-icon {
        top: -10px;
        right: -10px;
      }

      &:hover {
        .close-icon {
          cursor: pointer;
          display: block;
        }
      }

      .el-input {
        width: 200px;
        margin-left: 10px;
      }

      .ad-image-link {
        margin-top: 10px;

        p {
          display: inline-block;
        }
      }
    }
  }

  .ad-image-hot {
    position: relative;
    margin-top: 10px;

    .ad-image-hot-box {
      position: relative;

      &:hover {
        .close-icon {
          cursor: pointer;
          display: block;
        }
      }
    }

    .add-ad-image {
      display: inline-block;
      margin-bottom: 10px;
      padding: 4px 6px;
      border: 1px solid #459ae9;
      cursor: pointer;
      color: #459ae9;
      margin-right: 10px;
    }

    img {
      width: 100%;
      user-select: none;
    }

    .ad-image-hot-content {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      cursor: all-scroll;

      span.ad-hot-box-item {
        position: absolute;
        border: 1px solid #38f;
        background: rgba(51, 136, 255, .5);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        cursor: pointer;

        &:hover {
          .el-icon-close {
            display: block;
            cursor: pointer;
          }
        }
      }
    }
  }
  .styleWrap {
    margin-bottom: 10px;
    background-color: #f0f2f5;
    border-radius: 6px;
    padding: 0 10px 5px;
    .el-radio-button--small .el-radio-button__inner{
      padding: 4px 10px;
    }
    .titleStyle {
      padding: 10px 0;
      font-size: 14px;
      font-weight: 700;
      color: #595961;
    }
    .item_mar {
      margin-bottom: 12px;
    }
    .text_mar {
      margin-left: 10px;
    }
    .resetText {
      padding: 5px;
    }
    .el-color-picker {
      margin: 0;
    }
    .progressWrap {
      .progressBox {
        width: 100%;
        height: 40px;
        padding:5px;
        background-color: #FFFFFF;
        .progress {
          padding: 0 10px;
        }
        .inpWrap {
          width: 30px;
          height: 30px;
          text-align: center;
          line-height: 30px;
        }
      }
    }
  }
  .image_con {
    .el-range-editor--medium.el-input__inner{
      height: 30px;
    }
    .el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner{
      width: 250px;
      margin-left: 7px;
      margin-top: 5px;
    }
  }
}
